package com.crazyhat.crazyhat.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.crazyhat.crazyhat.dto.MessageDTO;
import com.crazyhat.crazyhat.entity.Message;

/**
 * <p>
 * 消息 服务类
 * </p>
 *
 * @author crazyhat
 * @since 2024-07-05
 */
public interface IMessageService extends IService<Message> {

    /**
     * 社团发送消息给用户
     * @param studentId
     * @param clubId
     * @param content
     */
    void sendMessageToStudent(Integer studentId, Integer clubId, String content);

    public Page<MessageDTO> checkMassages(int pageNum, int pageSize);
}
